﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

namespace YuShiManageSystem.DATA
{
    public partial class tb_order : EntityObject
    {
        	public tb_order()
			: base()
		{
			Dictionary<Type, int> _primaryKeysCache = DataModel.primaryKeysCache;
			lock (_primaryKeysCache)
			{
				int primaryKey = 0;
				if (!_primaryKeysCache.TryGetValue(this.GetType(), out primaryKey))
				{
					using (DataModel model = new DataModel())
					{
						//primaryKey = model.tb_order.Any() ? model.tb_order.Max(c => c.orderNo) : 0;
					}
				}
				_primaryKeysCache[this.GetType()] = primaryKey;
			}
		}
            public void test() { }
    }
}
